package com.laixu.estore.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@ApiModel("管理系统新增用户数据传输对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserRegisterDTO {

    @ApiModelProperty("登录用户名")
    private String username;

    @ApiModelProperty("登录密码")
    private String password;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("用户性别(0男，1女)")
    private String gender;

    @ApiModelProperty("用户生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

}